from feedbag.apps.blog.models import Post
from django.contrib.sitemaps import FlatPageSitemap, GenericSitemap
from feedbag.apps.product.models import Brand, Product, ProductType, \
    ProductImage

def product_sitemap():
	
	info_dict = {
	    'queryset': Product.objects.all().filter(active=True).filter(has_review=True),
	    'date_field': 'created_at',
	}
		
	return GenericSitemap(info_dict, priority=0.6)